package whileControl;

public class BreakTest {

	public static void main(String[] args) {
		// break
		for (int i = 0; i <= 100; i++) {
			System.out.println(i);
			if (i == 6) {
				break; // i等于6时跳出循环
			}
		}
		System.out.println("--end--");

	}
}
